package com.hnxxxy.sysmgr.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @author：张浩东
 * @Phone：15096207164
 * @QQ：1367048164
 * @E-mail：1367048164@qq.com
 * @date:2020年6月27日11:41:18
 */
@Data
@Service
public class Log {
    private int id;
    private int userId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String time;
    private String url;
    private String describe;
    private String describeType;
    private String typeName;
    private String ip;
    private String parameter;
    private String methods;
    private String abnormal="0";
    private String startTime;
    private String endTime;

    public void Log(String time, String url, String describe, String describeType, String typeName, String ip, String parameter, String methods) {
        this.time = time;
        this.url = url;
        this.describe = describe;
        this.describeType = describeType;
        this.typeName = typeName;
        this.ip = ip;
        this.parameter = parameter;
        this.methods = methods;
    }
}
